Best practices

When creating applications for embedded and mobile devices even seemingly small details can have significant impact on the performance of your Kanzi application on target devices. Kanzi OpenGL ES 2.0 pipeline is optimized to have almost no unnecessary GL calls, which allows getting 60 frames per second for 3D instrument clusters and human-machine interfaces. Use the best practices in this part to create optimal Kanzi applications for your target hardware.

Even though Kanzi provides many ways that enable you to create applications that consume less memory, CPU and GPU capacity, and device battery, how you create your application has a large impact on its efficiency.

Use the appropriate project template

Application optimization starts already with the selection of the correct project template for your project. In general, the vertex-based shading offered in Fast performance project template is a good choice for mobile GPUs, because of the lower cost of fragment-based shading. However, some mobile GPUs are optimized for pixel-based shading, offering better performance with material types that come with the High quality project template. The type of shading used is often the first bottleneck that causes bad performance. See Shaders best practices.

Clean up your project

Kanzi Studio provides a very useful feature that helps you remove all items in a project that the project does not use. Even though removing unused items from your project does not always improve the loading times and performance of your Kanzi application, removing unnecessary content makes optimization of your Kanzi application much easier because it helps you focus on optimizing the correct content. See Cleaning up a project.

Pay attention to Log messages

Kanzi shows warnings and errors to the debug console to help you find the problems and bottlenecks in your Kanzi application. Pay careful attention to these messages. To ensure that your Kanzi application works correctly and performs optimally on your target platform, resolve all the issues shown in the warnings and errors. Even seemingly unimportant warnings can have a significant impact on the loading times and performance of your Kanzi application. For example, see Adjusting the data size.

See also

Measuring the performance of your Kanzi application

Animations best practices

Images and textures best practices

Memory management best practices

Meshes best practices

Rendering best practices

Shaders best practices

Reference for application configuration